import instance from "./axios";

export let getlist = () => {
    return instance.get('/list')
}

export let newgetlist = () => {
    return instance.get('/newlist')
}

export let addlist = (params: any) => {
    return instance.post('/list', params)
}

export let updatelist = (params: any) => {
    return instance.patch(`/newlist/${params.id}`, params)
}


export let dellist = (id: any) => {
    return instance.delete(`/newlist/${id}`)
}